package demo;

import demo.recommend.FluentBuilder;

public class ClientForRecommend {

    public static void main(String[] args) {

        // fluent builder流式构建
        FluentBuilder builderA1 = (FluentBuilder) FluentBuilder.builder()
                .part1("钢铁手");
        System.out.println("构建得到产品：" + builderA1.build() + "\n");

        FluentBuilder builderA2 = (FluentBuilder) FluentBuilder.builder()
                .part2("钢铁脚");
        System.out.println("构建得到产品：" + builderA2.build() + "\n");

        FluentBuilder builderA3 = (FluentBuilder) FluentBuilder.builder()
                .part1("钢铁手")
                .part2("钢铁脚");
        System.out.println("构建得到产品：" + builderA3.build() + "\n");


        FluentBuilder builderB1 = (FluentBuilder) FluentBuilder.builder()
                .part1("塑料手");
        System.out.println("构建得到产品：" + builderB1.build() + "\n");

        FluentBuilder builderB2 = (FluentBuilder) FluentBuilder.builder()
                .part2("塑料脚");
        System.out.println("构建得到产品：" + builderB2.build() + "\n");

        FluentBuilder builderB3 = (FluentBuilder) FluentBuilder.builder()
                .part1("塑料手")
                .part2("塑料脚");
        System.out.println("构建得到产品：" + builderB3.build() + "\n");
    }
}
